package main

import "fmt"

func add(num int)  {
	num += 1
}

func readAdd(num *int){
	*num += 1
}

func main() {
	str := "golang"
	var p *string = &str
	*p = "hello"

	fmt.Println(p)
	fmt.Println(str)

	num := 100
	add(num)
	fmt.Println(num)

	readAdd(&num)
	fmt.Println(num)
}
